package org.jeecg.modules.demo.soOrderDetail.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.demo.soOrderDetail.entity.SoOrderDetail;
import org.jeecg.modules.demo.soSaleOrder.entity.SoSaleOrder;
import org.jeecg.modules.demo.warehouseorder.entity.WarehouseOrder;

import javax.servlet.http.HttpServletRequest;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: so_order_detail
 * @Author: jeecg-boot
 * @Date:   2021-12-10
 * @Version: V1.0
 */
public interface ISoOrderDetailService extends IService<SoOrderDetail> {

	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);


    SoOrderDetail getBySodNo(String sodNo,String soOrder);

    List<SoOrderDetail> getByDbNo(String dbNo);

	boolean checkOrder(SoOrderDetail soOrderDetail);

	boolean unCheckOrder(SoOrderDetail soOrderDetail);

    List<SoOrderDetail> getBysoNo(String soNo);

	boolean editRk(SoOrderDetail soOrderDetail);

	List<SoOrderDetail> getByWoNo(String str);

	String getMaxCode();
	SoOrderDetail getBySodNumber(String sodNo);

	boolean editRkandOrder(SoOrderDetail soOrderDetail);

	List<WarehouseOrder> getByprdAndWh(WarehouseOrder warehouseOrder);
//	IPage<WarehouseOrder> getByprdAndWh(Page<WarehouseOrder> page, String whNum, String prdNo,String chumdwmc);

    boolean addSoOrderDetail(SoOrderDetail soOrderDetail, SoSaleOrder soSaleOrder, HttpServletRequest req);

    boolean addSoQuality(JSONObject jsonObject, HttpServletRequest req);
}
